package com.xckj.controller.run.intermethod;

import javax.annotation.Resource;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import com.adrninistrator.jacg.runner.RunnerGenAllGraph4Caller;
import com.xckj.entity.JacgSpringController;
import com.xckj.service.InterfaceMethodService;
import com.xckj.utils.ReturnT;

/**
 * 生成方法生成向下的方法完整调用链
 */

@RestController
@RequestMapping(value = "/methodcaller")
public class RunnerGenAllGraph4CallerController {
    @Resource
    private InterfaceMethodService interfaceMethodService;

    /**
    * 写DB
    * @author yanchf
    * @date 2023/12/03
    **/
    @RequestMapping("/writeDB")
    public Object writeDB(JacgSpringController jacgSpringController){
        boolean isSucc =  new RunnerGenAllGraph4Caller().run();
        return ReturnT.success(isSucc);
    }
    
}
